package com.example.payserver1040;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 支付的启动类
 * @EnableFeignClients ：开启Feign支持,value属性可以指定Feign的客户端接口的包,当然也可以省略value属性
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@EnableCircuitBreaker  //开启熔断器
@EnableHystrixDashboard  //开启HystrixDashboard仪表盘
public class PayServer1040Application {

    public static void main(String[] args) {
        SpringApplication.run(PayServer1040Application.class, args);
    }

}
